#define _CRT_SECURE_NO_WARNINGS 1
#include "SLTlist.h"

int main()
{
	SLTnode* s = CreateSLT(5);
	SLTpushback(&s, 1);
	SLTpushback(&s, 2);
	SLTpushback(&s, 3);
	SLTpushback(&s, 4);

	SLTprint(s);

	//SLTpopback(&s);

	//SLTprint(s);

	//SLTpushfront(&s, 20);
	//SLTprint(s);

	//SLTpopfront(&s);
	//SLTprint(s);

	//printf("%d",(SLTfind(s, 2))->data);

	//SLTinsertafter(s, 20);
	//SLTprint(s);

	//SLTeraseafter(s);
	//SLTeraseafter(s);

	//SLTprint(s);

	SLTnode* n = SLTfind(s, 2);
	SLTinsert(&s, n, 10);
	SLTprint(s);

	SLTnode* m = SLTfind(s, 3);
	SLTerase(&s, m);
	SLTprint(s);

	SLTdestroy(&s);
	return 0;
}